<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>OpenPanel beta</title>
	<link rel="stylesheet" type="text/css" href="js/ext-2.0/resources/css/ext-all.css" />
	<link rel="stylesheet" type="text/css"	href="js/ext-2.0/resources/css/xtheme-macx.css" />
	<link rel="stylesheet" type="text/css"	href="css/openpanel.css" />
	<script type="text/javascript" src="js/jquery-1.2.2.js"></script>
	<script type="text/javascript" src="js/json.js"></script>
	<script type="text/javascript" src="js/ext-2.0/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="js/ext-2.0/ext-all.js"></script>
	<script type="text/javascript" src="js/ext-2.0/build/util/KeyMap-min.js"></script>
	<script type="text/javascript" src="js/trimpath-template-1.0.38/trimpath-template-1.0.38.js"></script>
	<script type="text/javascript" src="js/radiogroup.js"></script>
	<script type="text/javascript" src="js/compressed_openpanel.js"></script>
	
	<script type="text/javascript">
		var $j = jQuery.noConflict();
		if(typeof(console) != 'object'){
			console = { log: function(){}}
		}
		
		$j(document).ready(function(){
			
				Ext.BLANK_IMAGE_URL = '/images/ext/resources/images/default/s.gif';  // Ext 2.0
				OpenCore.RPC.RequestHandler.setOpenCoreURL("/fake-opencore-proxy/json");
				
				OpenCore.DataManager.setRPC(OpenCore.RPC);
				OpenPanel.Controller.setDataManager(OpenCore.DataManager);
				
				OpenPanel.Controller.setGuiBuilder(OpenPanel.GUIBuilder);
				OpenPanel.GUIBuilder.GUIElements.ItemList.setGuiBuilder(OpenPanel.GUIBuilder);
				OpenPanel.GUIBuilder.GUIElements.ItemList.setController(OpenPanel.Controller);
				OpenPanel.GUIBuilder.GUIElements.FormObject.setGuiBuilder(OpenPanel.GUIBuilder);
				OpenCore.RPC.RequestHandler.startLoading = OpenPanel.GUIBuilder.showLoadingDiv;
				OpenCore.RPC.RequestHandler.doneLoading = OpenPanel.GUIBuilder.hideLoadingDiv;
				
				OpenPanel.Controller.action( 
				{
					command: "Init",
					userName: "openadmin",
					password: "foobar"
				});
			}
		);
			
	</script>
</head>
<body>
	
	
	<div id="modalLoadingDiv"></div>
	<div id="modalMessageDiv">
		<div id="modalMessageContent"></div>
	</div>
	<div id="modal"></div>
	<center>
		<div id="app"></div>
	</center>
</body>
</html>